package jpaperwork.meta.transformer;

import jpaperwork.meta.descriptor.DiscriminatedType;

/**
 * User: fleipold
 * Date: Sep 28, 2009
 * Time: 8:33:52 AM
 */
public class PolymorphicValue {
    private final DiscriminatedType type;
    private final Object value;

    public PolymorphicValue(DiscriminatedType type, Object value) {
        this.type = type;
        this.value = value;
    }


    public DiscriminatedType getType() {
        return type;
    }

    public Object getValue() {
        return value;
    }
}
